package com.haiyou.dc.exception;

public class TestFinally {
    public int method() {
        int x = 1;
        try {
            ++x;
            return x;
        } catch (Exception e) {

        } finally {
            ++x;

        }
        return x;

    }

    public static void main(String[] args) {
        TestFinally t = new TestFinally();
        int y = t.method();
        System.out.println(y);
    }
}